<script language="JavaScript">
	<!--Luu lai url cua trang hien thoi de quay lai-->
	v_url = window.location.href;
	//Dua them fuseaction vao url neu url chua co fuseaction
	if (v_url.indexOf("fuseaction",0) < 0) {
		if (v_url.indexOf('?') < 0){
			v_url = v_url+'?fuseaction=$$$$$';
		}else{
			v_url = v_url+'&fuseaction=$$$$$';
		}
	}
	v_url = v_url + '&random=' + <? echo mt_getrandmax();?>;
</script>
<?php
if (!isset($_REQUEST['url_back'])) {
	$v_url_back = _CONST_HOMEPAGE_URL_PATH;
} else {
	$v_url_back = $_REQUEST['url_back'];
}
@session_start();
if (isset($_REQUEST['logon_citizen_id'])){
	$_SESSION['citizen_id'] = $_REQUEST['logon_citizen_id'];
	$_SESSION['citizen_username'] = $_REQUEST['logon_citizen_username'];
	$_SESSION['citizen_fullname'] = $_REQUEST['logon_citizen_fullname'];
}

if (!isset($_SESSION['citizen_id']) || (isset($_SESSION['citizen_id']) && $_SESSION['citizen_id']==0)){?>
	<script>
		v_url = escape(v_url);
		window.location = '<?php echo $_ISA_CAM_SITE_PATH;?>login/index.php?url_back_app='+v_url+'&url_back=<?php echo $v_url_back;?>';
	</script><?php
}	
?>